﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JourneyGlyphGen
{
    public partial class SizeDialog : Form
    {
        public Int32 Size { get; set; }

        public SizeDialog()
        {
            InitializeComponent();
            Size = 16;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (nudSize.Value % 16 != 0) {
                MessageBox.Show("Please make sure that the size is a multiple of 16.");
                return;
            }

            Size = (Int32) nudSize.Value;

            DialogResult = DialogResult.OK;
            Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
